package jym.tan.tmdb.bean;

import java.io.Serializable;

import com.google.gson.annotations.SerializedName;

/**
 * The Class PersonCast.
 * <p>
 * 	The property is:
 * 	<ul>
 * 		<li>id</li>
 * 		<li>original_title</li>
 * 		<li>poster_path</li>
 * 		<li>release_date</li>
 * 		<li>title</li>
 * 		<li>character</li>
 * 	</ul>
 * </p>	
 * @author Tanmoy
 */
public class PersonCast extends Credit implements Serializable {

	private static final long serialVersionUID = 8806963539914143259L;
	
	@SerializedName("character")
	private String character;
	
	/**
	 * Default Constructor.
	 */
	public PersonCast() {
		
	}

	/**
	 * Gets the character.
	 *
	 * @return 
	 * 		The character
	 */
	public String getCharacter() {
		return character;
	}

	/**
	 * Sets the character.
	 *
	 * @param character 
	 * 		The new character
	 */
	public void setCharacter(String character) {
		this.character = character;
	}
	
	/* (non-Javadoc)
	 * @see jym.tan.tmdb.bean.Credit#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("{").
			append("id:").append(id).
			append(",").
			append("character:").append("\"").append(character).append("\"").
			append(",").
			append("original_title:").append("\"").append(originalTitle).append("\"").
			append(",").
			append("poster_path:").append("\"").append(posterPath).append("\"").
			append(",").
			append("release_date:").append("\"").append(releaseDate).append("\"").
			append(",").
			append("title:").append("\"").append(title).append("\"").
			append("}");
		return builder.toString();
	}
}
